package com.cskaoyan.service.admin;

import com.cskaoyan.bean.MarketKeyword;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.param.CommonData;

import java.util.List;

public interface AdminKeywordService {

    //分页查询符合条件的关键词
    CommonData<MarketKeyword> queryKeywordByBaseParamAndKeywordAndUrl(String keyword, String url, BaseParam baseParam);

    //创建关键词插入数据库
    MarketKeyword createKeyword(MarketKeyword marketKeyword);

    //更新关键词
    MarketKeyword updateKeyword(MarketKeyword marketKeyword);

    //删除关键词
    void deleteKeyword(MarketKeyword marketKeyword);

    //获得所有的关键字
    List<MarketKeyword> selectAllKeywordByKeywordName(String keyword);
}
